"""author: mibo
   data: 2020/11/2
   project: pythonProject
"""
import random
import string

lst = []
print("这是一个获取随机32位激活码的小程序")
nub = int(input("输入你想要获得的激活码数量："))
a = string.digits
b = string.ascii_uppercase


def rand():
    for j in range(nub):
        chars = a + b
        s = [random.choice(chars) for i in range(32)]
        s = ''.join(s)
        lst.append(s)

    print(f"获得的激活码为：{lst}")


rand()
